<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<div class="row">
    <div class="container">
        <div class="logo">LOGO</div>
        <div class="overlay"></div>
        <nav class="nav">
            <ul>
                <li><a href="services.jsp"><span class="sprite-small serve"></span>SERVICES</a></li>
                <li class="last"><a href="profile.jsp?"><span class="sprite-small user"></span>PROFILE</a></li>
                <li class="last"><a href="messages.jsp?"><span class="sprite-small messages"></span>MESSAGES</a></li>
                <li class="last"><a href="contracts.jsp?"><span class="sprite-small tool"></span>CONTRACTS</a></li>
            </ul>
        </nav>
        <div class="welcome last">
            <span style="color: #fff;">WELCOME,

                <%
                    Cookie cookie = null;
                    Cookie[] cookies = null;
                    // Get an array of Cookies associated with this domain
                    cookies = request.getCookies();
                    if (cookies != null) {
                        for (int i = 0; i < cookies.length; i++) {
                            cookie = cookies[i];
                            if (cookie.getName().equals("username")) {
                                out.print("" + cookie.getValue() + "");
                            }
                        }
                    }

                %>          

            </span> <a href="logout.jsp"><span class="sprite-small logout"></span>LOGOUT</a>
        </div>
        <div class="overlay_2"></div>
    </div>
</div>
